package com.example.parking.service;/*
 * @author 陈政
 * @date 2020-08-12 19:17
 */


import vo.CreateParkingVo;
import vo.HomeParkingVo;
import com.github.pagehelper.PageInfo;
import entity.PageParam;
import entity.Rsp;
import org.springframework.web.multipart.MultipartFile;
import pojo.Parking;
import pojo.ParkingInfo;
import java.util.List;
import java.util.Map;


public interface ParkingService {
    int deleteByPrimaryKey(String parkingId);

    int insert(Parking record);

    int insertSelective(Parking record);

    HomeParkingVo selectByPrimaryKey(String parkingId);

    int updateByPrimaryKeySelective(PageParam<Parking> record);

    int updateByPrimaryKeyWithBLOBs(Parking record);

    int updateByPrimaryKey(Parking record);

    public PageInfo<HomeParkingVo> searchSomeByPage(String userId, PageParam<Parking> pageParam);

    List getProvinces();

    List getProperties();

    Rsp createParking(CreateParkingVo createParkingVo);

    Integer getCounts();

    Integer getCountsWithKey(PageParam<Parking> pageParam);

    int createParkingInfo(ParkingInfo parkingInfo);

    Map saveImg(MultipartFile file);
}
